package com.baidu.springcloud.resultenum;

import lombok.Getter;

/**
 * @author ShiLei
 * @version v1.0
 * @date 2020-03-11 10:48
 */
@Getter
public enum ResultEnum {

    ERROR_RESULT(500, "服务器内部异常"),
    SUCCESS_RESULT(200, "成功");

    private final Integer code;
    private final String message;

    ResultEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
